home *** CD-ROM | disk | FTP | other *** search
- Path: god.bel.alcatel.be!btmpj7!ian
- From: ian@rsd.bel.alcatel.be (Ian Ward)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 29 Feb 1996 17:01:29 GMT
- Organization: Alcatel Bell Telephone
- Distribution: world
- Message-ID: <4h4m59$60e@btmpjg.god.bel.alcatel.be>
- References: <4gvrffINNlqo@anvil.ugrad.cs.ubc.ca>
- Reply-To: ian@rsd.bel.alcatel.be
- NNTP-Posting-Host: btmpj7.rsd.bel.alcatel.be
-
- Kazimir Kylheku says:
-
- > What is intrinsically unsafe about C?
-
- Nothing, it is the people that write it, they are human, they make mistakes,
- and it is easier to make mistakes when one uses a language that was not intended
- for the job at hand. It is like rewiring a house with an ordinary screwdriver,
- things go perfectly well as long as one remembers to switch off the mains, every
- day, before work starts. Conversely, if one just wants to prise the top off a tin
- of paint, one does not go out of one's way to find the Black and Decker cordless,
- when there is an ordinary screwdriver at hand, (especially now that cordless
- screwdrivers are starting to resemble drills.)
-
- > I could write a strict,
- > standard-conforming, anally-retentive program in any language that could kill
- > people (maliciously, of course).
-
- You could, but then so could I; anything is possible after all, but it is more
- likely that the code we write would have flaws, I try to not turn down any help I
- can get. (except for cars, because I'm a MAN, I will not have ABS, power-steering,
- OR front-wheel drive, because they were designed with feeble women and old
- men in mind. Oh, and seat belts, because I am never going have an accident,
- because, if the average programmer can concentrate enough to write a AMRAAM
- guidance system controller, in a language like Cesil, then he is never going
- to make a mistake while doing something as relatively simple as driving a car.:-)
-
- > Software which has life-threatening consequences shoud not be left to something
- > that sacrifices intimacy with hardware for some higher purpose that has more to
- > do with bureaucracy than anything else.
-
- I agree, but neither should it be left to something that was, after all, never
- designed for the purpose. This argument all boils down to whether you pay any
- attention to the facts, whilst I suspect power of abstraction, type checking,
- etc. are not the only reasons Bjarne Stroustrop got so heavily involved with
- C++, I am sure that if he thought 'C' was perfect he would not have bothered
- to try and change it. The American DOD also, I am sure, did not go to massive
- expense to produce the Ada 83 language, simply for the good of their health.
- I am also sure that Ada was redesigned, to enhance and correct problems with
- the original Ada language. My point is that nothing is perfect, but to get
- better, people have to correct the faults that there are. This is not helped
- by the "I have used X for ten years, and am so attuned to it that I cannot
- think any other way" attitude which prevails. I am fairly sure that everyone
- out there knows a 'C' programmer, who not only does not like Ada, (and never
- has probably) but who does not like C++ either. If I had a Swiss Franc for
- each time I have heard, "I don't like the way these functions are called all
- over the place, without you knowing it." I could probably now buy a meal in
- Zurich Airport.
-
- > And it should certainly not be written in some poorly standardized language,
-
- Are you telling my that Ada is poorly standardised,
-
- > for which no two implementations are in agreement.
-
- or that all implementations of 'C' are the same?
-
- > C is governed by an ISO standard, which, IF adhered to,
- Quite! However, Peter Seebach's, probably too busy, and so is Dan Pop,
- and so (apologies to the other language lawyers I've missed) just who
- IS going to write it? Some non-language lawyer (like myself) will probably
- end up writing the code, and for a large system the code will end up as
- just what the compiler will let him get away with.
-
- > lets a strictly conforming program
- > translated by a strictly conforming implementation yield well-defined results.
- The next time I fly by space shuttle, I'll have peace of mind, knowing that
- the software controlling the engines is as reliable as Unix, and other solid,
- bug-free, well scripted, engineered 'C' software out there.
- Like all things, each to his gifts. Within the scope of it's design criteria,
- 'C' does perfectly, and like other languages, things only go pear shaped when
- people who love it more than life itself, and don't know any better, or anything
- else, start using it for things it wasn't intended for.
-
- > I don't think you can say the same for Ada or C++
- If you do not even KNOW for certain if Ada is even standardised,
- then how can you argue your case.
-
-
- Best regards, no offence intended.
- ---
- Ian Ward's opinions only : ian@rsd.bel.alcatel.be
-
-